check if a list is sorted

visit shbcf.ru